package com.sunchangpeng.microservicemovie.manager.user;

import com.sunchangpeng.microservicemovie.manager.user.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by sunchangpeng
 */
@FeignClient(name = "microservice-user")
public interface UserMicroservice {
    @GetMapping("/user/{id}")
    public User findById(@PathVariable("id") long id);
}
